package com.handong.handserialprogram.thread;

import com.handong.handserialprogram.utils.JLog;

import org.apache.mina.core.service.IoService;
import org.apache.mina.core.service.IoServiceListener;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.core.session.IoSession;

public class IoListener implements IoServiceListener{

	private static final String TAG = "IoListener";

	@Override
	public void serviceActivated(IoService arg0) throws Exception {
		JLog.d(TAG,"serviceActivated");
	}

	@Override
	public void serviceDeactivated(IoService arg0) throws Exception {
		JLog.d(TAG,"serviceDeactivated");
	}

	@Override
	public void serviceIdle(IoService arg0, IdleStatus arg1) throws Exception {
		JLog.d(TAG,"serviceIdle");
	}

	@Override
	public void sessionClosed(IoSession arg0) throws Exception {
		JLog.d(TAG,"sessionClosed");
	}

	@Override
	public void sessionCreated(IoSession arg0) throws Exception {
		JLog.d(TAG,"sessionCreated");
	}

	@Override
	public void sessionDestroyed(IoSession arg0) throws Exception {
		JLog.d(TAG,"sessionDestroyed");
	}

}
